package com.lfs.admin.dao;

import com.lfs.admin.model.entity.AgtWalletInfoEntity;
import com.lfs.admin.model.vo.AgtWalletInfoVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface AgtWalletInfoDao {

    List<AgtWalletInfoEntity> queryAgtWallet(AgtWalletInfoVO agtWalletInfoVO);

    AgtWalletInfoEntity getAgtWallet(@Param("agtPhone") String agtPhone);

    Map<String, Object> updateFreeze(Map<String, Object> map);

    int upsertWallet(@Param("agtPhone") String agtPhone, @Param("credit") BigDecimal credit);

    BigDecimal getBalanceByPhone(@Param("agtPhone") String agtPhone);

    AgtWalletInfoEntity selectForUpdate(String agtPhone);

}
